package com.lpf.hotelsystem.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 历史订单(HistoricalOrders)实体类
 *
 * @author makejava
 * @since 2025-01-18 18:07:52
 */
public class HistoricalOrders implements Serializable {
    private static final long serialVersionUID = -72001182199971989L;
/**
     * 编号
     */
    private Integer historyId;
/**
     * 管理员
     */
    private Integer adminId;
/**
     * 退房时间
     */
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
// 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty(name = "checkOutTime",notes = "退房时间",dataType = "date",required = true)
    private Date checkOutTime;
/**
     * 预定订单
     */
    private Integer reservationId;


    public Integer getHistoryId() {
        return historyId;
    }

    public void setHistoryId(Integer historyId) {
        this.historyId = historyId;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Date getCheckOutTime() {
        return checkOutTime;
    }

    public void setCheckOutTime(Date checkOutTime) {
        this.checkOutTime = checkOutTime;
    }

    public Integer getReservationId() {
        return reservationId;
    }

    public void setReservationId(Integer reservationId) {
        this.reservationId = reservationId;
    }

}

